package com.shinewind.pojo.doc;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "用于返回收藏的信息")
public class ArticleDoc {
    @ApiModelProperty(value = "文章id")
    private Integer aId;
    @ApiModelProperty(value = "发布文章的用户的用户id")
    private String uId;
    @ApiModelProperty(value = "发布文章的用户的用户昵称")
    private String nickName;
    @ApiModelProperty(value = "发布文章的用户的用户头像")
    private String avatar;
    @ApiModelProperty(value = "文章关联的模型编号或新闻编号")
    private String mId;
    @ApiModelProperty(value = "文章的标题")
    private String title;
    @ApiModelProperty(value = "文章的内容")
    private String content;
    @ApiModelProperty(value = "文章观看次数")
    private Integer watch;
    @ApiModelProperty(value = "文章的部分图片")
    private List<String> images;
    @ApiModelProperty(value = "模型的名字")
    private String name;
    @ApiModelProperty(value = "模型图片地址")
    private String src;
    @ApiModelProperty(value = "是否商品")
    private String isModel;
    @ApiModelProperty(value = "文章的发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
}
